using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_ECH_Member_List_OfferMap : EntityTypeConfiguration<Web_ECH_Member_List_Offer>
    {
        public Web_ECH_Member_List_OfferMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("Web_ECH_Member_List_Offer");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.OfferName).HasColumnName("OfferName");
            this.Property(t => t.OfferPass).HasColumnName("OfferPass");
            this.Property(t => t.OfferMemo).HasColumnName("OfferMemo");
            this.Property(t => t.FlagStatus).HasColumnName("FlagStatus");
        }
    }
}
